package com.group3.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
@ApiModel("学生个人得分")
public class PersonalScores {

    @ApiModelProperty(value = "班级名")
    private String classId;

    @ApiModelProperty(value = "学院")
    private String departName;

    @ApiModelProperty(value = "专业")
    private String professionName;

    @ApiModelProperty(value = "责任教师工号")
    private String teacherId;

    @ApiModelProperty(value = "责任教师姓名")
    private String teacherName;

    @ApiModelProperty(value = "小组id")
    private Long groupId;

    @ApiModelProperty(value = "小组名")
    private String groupName;

    @ApiModelProperty(value = "学生学号")
    private String studentId;

    @ApiModelProperty(value = "学生姓名")
    private String studentName;

    @ApiModelProperty(value = "学生性别")
    private Integer sex;

    @ApiModelProperty(value = "学生得分")
    private Float score;

    @ApiModelProperty(value = "课程名")
    private String lessonName;

    @ApiModelProperty(value = " 项目角色")
    private Integer type;

    @ApiModelProperty(value = " 项目角色")
    private String typeStr;

    public String getTypeStr() {
        switch (type) {
//            项目角色:0:前端；1;后台；2：测试
            case 0: return "前端";
            case 1: return "后台";
            case 2: return "测试";
        }
        return "?";
    }

}